<?php
	$moranguinho = 'nao';
	$logged = 'sim';
	$id='diversao';
	include 'header.php';
?>
			<div class="wrapper-content">
				<?php include 'login-panel.php'; ?>
				<span class="clear"></span>				
				<div class="extra-wrapper-slide-diversao">
					<a class="link-jogos" href="<?php bloginfo('url'); ?>/jogos"></a>
					<?php the_post(); ?>
					<div class="flash">
						<?php $show = get('opcoes_show'); if ($show==false && is_user_logged_in()==false) { ?>
							<div class="flash error-jogos">
								<a class="fancybox" href="#signin">Cadastre-se para brincar comigo</a>
								<span class="clear"></span>
							</div>
						<?php } else { ?>
							<?php $type = get('opcoes_type'); ?>
							<?php if($type=='HTML'){ ?>
							<iframe src="<?php echo get('opcoes_link'); ?>" width="<?php echo get('tamanho_width'); ?>" height="<?php echo get('tamanho_height'); ?>" style="margin: 0 auto;display: block;"></iframe>
							<?php } else { ?>
							<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="<?php echo get('tamanho_width'); ?>" height="<?php echo get('tamanho_height'); ?>" align="middle" style="display: block;margin: 0 auto;">
								<param name="movie" value="<?php echo get('opcoes_link'); ?>" />
								<param name="quality" value="high" />
								<param name="bgcolor" value="#ffffff" />
								<param name="play" value="true" />
								<param name="loop" value="true" />
								<param name="wmode" value="window" />
								<param name="scale" value="showall" />
								<param name="menu" value="true" />
								<param name="devicefont" value="false" />
								<param name="salign" value="" />
								<param name="allowScriptAccess" value="sameDomain" />
									<!--[if !IE]>-->
									<object type="application/x-shockwave-flash" data="<?php echo get('opcoes_link'); ?>" width="<?php echo get('tamanho_width'); ?>" height="<?php echo get('tamanho_height'); ?>">
										<param name="movie" value="<?php echo get('opcoes_link'); ?>" />
										<param name="quality" value="high" />
										<param name="bgcolor" value="#ffffff" />
										<param name="play" value="true" />
										<param name="loop" value="true" />
										<param name="wmode" value="window" />
										<param name="scale" value="showall" />
										<param name="menu" value="true" />
										<param name="devicefont" value="false" />
										<param name="salign" value="" />
										<param name="allowScriptAccess" value="sameDomain" />
									<!--<![endif]-->
										<a href="http://www.adobe.com/go/getflash">
										<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Загрузить Adobe Flash Player" />
									</a>
								<!--[if !IE]>-->
								</object>
								<!--<![endif]-->
							</object>
							<?php } ?>
						<?php } ?>
					</div>
					<div class="wrapper-info-jogo">
						<div class="game-name">
							<p><?php the_title(); ?></p>
							<img src="<?php bloginfo('template_directory')?>/img/jogo-bg.png" alt=""/>
						</div>
						<div class="howtoplay">
							<h2>Como Jogar</h2>
							<?php echo get('opcoes_como_jogar'); ?>
							<img src="<?php bloginfo('template_directory')?>/img/jogo-bg.png" alt=""/>
						</div>
						<div class="hints">
							<h2>Dicas</h2>
							<?php echo get('opcoes_dicas'); ?>
							<img src="<?php bloginfo('template_directory')?>/img/jogo-bg.png" alt=""/>
						</div>
						<span class="clear"></span>
					</div>
				</div><!-- /extra-wrapper-slide-diversao -->
				<span class="clear"></span>
				<div class="destaque-produtos">
					<?php include 'slide-produtos.php'; ?>
				</div><!-- /destaque-produtos -->
				<div class="wrapper-destaques-diversao">
					<div class="conteudo-exclusivo">
						<img src="<?php bloginfo('template_directory')?>/img/conteudos-exclusivos.png?5" alt=""/>
					</div>
					<ul>
						<li>
							<div class="tit-categoria">
								<a href="<?php bloginfo('url')?>/videos"><span class="amarelo">Vídeos</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url')?>/videos"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-videos.png" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url')?>/videos" class="clique-aqui">Clique Aqui</a>
						</li>
						<li>
							<div class="tit-categoria">
								<a href="<?php bloginfo('url')?>/desenhos"><span class="roxo">Desenhar</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url')?>/desenhos"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-desenhar.png?7" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url')?>/desenhos" class="clique-aqui">Clique Aqui</a>
						</li>
						<li class="no-margin-right">
							<div class="tit-categoria">
								<a href="<?php bloginfo('url')?>/wallpapers"><span class="verde">Papéis de Parede</span>
								<img src="<?php bloginfo('template_directory')?>/img/moldura-destaque-categoria.png?6" alt=""/></a>
							</div>
							<div class="wrapper-img-destaque-diversao">
								<a href="<?php bloginfo('url')?>/wallpapers"><img src="<?php bloginfo('template_directory')?>/img/diversao-destaque-papeis.png?6" alt=""/></a>
							</div>
							<a href="<?php bloginfo('url')?>/wallpapers" class="clique-aqui">Clique Aqui</a>
						</li>
						<span class="clear"></span>
					</ul>
					<span class="clear"></span>
				</div><!-- /wrapper-destaques-diversao -->
				<span class="clear"></span>
			</div><!-- /wrapper-content -->
			<span class="clear"></span>
		</div><!-- /container -->
		<span class="clear"></span>
	</div> <!-- /wrapper-container -->
	<span class="clear"></span>
<?php include 'footer.php'; ?>